package com.mk.jta.xa.demo.secondary.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity(name = "xa_order")
public class Order {
    @Id
    private Long id;

    @Column(length = 20)
    private String orderId;
}
